Nevron Open Vision Documentation
Nevron.Nov.DataStructures Namespace / NMap<TKey,TValue> Class / TryGet Method
key to look for
value corresponding to key. Valid only if true is returned.


In This Topic
    TryGet Method (NMap<TKey,TValue>)
    In This Topic
    Tries to get the value for the specified key.
    Syntax
    'Declaration
     
    
    Public Function TryGet( _
       ByVal key As TKey, _
       ByRef value As TValue _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NMap(Of TKey,TValue)
    Dim key As TKey
    Dim value As TValue
    Dim value As System.Boolean
     
    value = instance.TryGet(key, value)
    public System.bool TryGet( 
       TKey key,
       out TValue value
    )

    Parameters

    key
    key to look for
    value
    value corresponding to key. Valid only if true is returned.

    Return Value

    true if the map contained a value for the specified key, otherwise false
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also